package com.hyq.listener;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafkaLocalListener {
    @KafkaListener(topics = {"lala","hyq"})
    public void testListener(ConsumerRecord<String,Object> consumerRecord){
        System.out.println(consumerRecord.value());
    }
}
